package org.jeecg.modules.wmhb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.wmhb.entity.WmProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 项目表
 * @Author: jeecg-boot
 * @Date:   2024-09-02
 * @Version: V1.0
 */
public interface WmProjectMapper extends BaseMapper<WmProject> {
    /**
     * 检查项目编码是否唯一
     * @param wmProject
     * @return
     */
    public WmProject checkCodeUnique(WmProject wmProject);

    /**
     * 检查项目名称是否唯一
     * @param wmProject
     * @return
     */
    public WmProject  checkNameUnique(WmProject wmProject);

    /**
     * 检查项目名下是否有合同
     * @param id
     * @return
     */
    public Integer hasItemById(String id);
}
